<php>
    $urlArr = explode('&', $_SERVER["REQUEST_URI"]);	
	unset($urlArr[1]);
	$urlRequest = implode('&', $urlArr);
	$url='http://'.$_SERVER['SERVER_NAME'].$urlRequest;  $navMenu = new NavMenuModel();	
    $menus = $navMenu->where('href', $url)->find();
	if(!$menus){
		$urlArr = explode('?', $_SERVER["REQUEST_URI"]);	
		unset($urlArr[1]);
		$urlRequest = implode('?', $urlArr);
		$url='http://'.$_SERVER['SERVER_NAME'].$urlRequest;  $navMenu = new NavMenuModel();	
		$menus = $navMenu->where('href', $url)->find();
	}
	if($menus['parent_id']){ $parentid = $menus['parent_id']; $menus = $navMenu->where('id',
    $parentid)->find(); }else{ $parentid = $menus['id']; }
</php>
<div class="menu-left">
	<h2>{$menus['name']}</h2>
	<ul>
		<subNavigation parent="$parentid" root="" id="main-navigation" class="nav navbar-nav navbar-nav-custom" max-level="0">
			<subNavigationMenu>
				<php>
					$urlArr = explode('&', $_SERVER["REQUEST_URI"]);							
					unset($urlArr[1]);
					$urlRequest = implode('&', $urlArr);
					$url='http://'.$_SERVER['SERVER_NAME'].$urlRequest;
					if($url == $menu['href']){ $active = "active"; }else{ $active
					= ""; }
					if($menu['left_status'] == 0){
						continue;
					}
				</php>
				<li class="menu-item menu-item-level-{$level} levelgt1 {$active}">
					<a href="{$menu.href|default=''}" target="{$menu.target|default=''}">
						{$menu.name|default=''}
					</a>
				</li>

				</if>
			</subNavigationMenu>

		</subNavigation>
	</ul>
	<h2>联系我们</h2>
	<div class="contactus">
		<img src="__TMPL__/public/static/img/contactus.jpg" alt="">
		<p>
			服务热线：400-6010-365 <br>
			FAX：+86755-25901858 <br>
			邮箱：info@eanta365.com <br>
			地址：深圳市罗湖区嘉宾路爵士大厦16A06-07室
		</p>
	</div>
	<br>
	<img src="__TMPL__/public/static/img/zhengshu.png" alt="">
</div>
